package 循环;

public class demo16 {
    public static void main(String[] args) {
        for (int i=1;i<=100;i++){
            if(i==1){
                continue;
            }
            if (i==2){
                System.out.println(i);
            }

            for (int j=2;j<i;j++){
                if (i%j==0){
                    break;
                }
                if (j==i-1){
                    System.out.println(i);
                }
            }
        }
    }
}
